package com.zjmzxfzhl.modules.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zjmzxfzhl.common.core.base.BaseService;
import com.zjmzxfzhl.modules.app.entity.AppProd;
import com.zjmzxfzhl.modules.app.entity.AppStock;
import com.zjmzxfzhl.modules.app.form.AppProdVo;
import com.zjmzxfzhl.modules.app.form.AppStockVo;
import com.zjmzxfzhl.modules.app.form.StockSumVo;

import java.math.BigDecimal;

/**
 * Service
 * 
 * @author 张森荣
 */
public interface AppStockService extends BaseService<AppStock> {
    /**
     * 分页查询
     * 
     * @param page
     * @param appStockVo
     * @return
     */
    IPage<AppStock> list(IPage<AppStock> page, AppStockVo appStockVo);
    /**
     * 统计项目概括
     *
     * @param appStock
     * @return
     */
    StockSumVo getStockSum(AppStock appStock);

    /**
     * 新增产品
     *
     * @param appStock
     * @return
     */
    boolean saveAppStock(AppStock appStock);

    /**
     * 根据id查询
     *
     * @return
     */
    AppStock queryById(String id);

    /**
     * 修改产品
     *
     * @param appStock
     * @return
     */
    boolean updateAppStock(AppStock appStock);

}
